package cn.net.autocode.platform.file.viewTemplate;

public class TxtView {

    public static final String template = """
             <!DOCTYPE html>
                <html lang="en" xmlns:th="http://www.thymeleaf.org">
                	<head>
                		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                		<meta http-equiv="X-UA-Compatible" content="IE=edge">
                		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
                		<meta name="renderer" content="webkit">
                		<title>{fileNameTitle}</title>
                		<style>
                		    * {
                      	        box-sizing: border-box;
                      	        -webkit-box-sizing: border-box;
                            }
            
                			html,body{
                				width: 100%;
                				height: 100%;
                				margin: 0px;
                				padding: 0px;
                			}
            
                            .panel-title {
                                margin-top: 0;
                                margin-bottom: 0;
                                font-size: 16px;
                                background-color: #F5F5F5;
                                padding: 15px;
                            }
            
                            .panel-body {
                                padding: 15px;
                            }
            
                            .divContent {
                                font-size：30px;
                                line-height：30px;
                                padding-bottom: 10px;
                                white-space: pre-wrap;
                                white-space: -moz-pre-wrap;
                                white-space: -pre-wrap;
                                white-space: -o-pre-wrap;
                                word-wrap: break-word;
                            }
                		</style>
                		</head>
                		<body>
                			<div class="panel-title" th:text="${fileName}"></div>
                            <div class="panel-body">
                              <div class="divContent" th:text="${fileData}"></div>
                            </div>
                		</body>
                </html>
            """;
}
